﻿#include "mainform.h"
#include <QApplication>
#include "logindialog.h"
#include <QDialog>



int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    MainForm w;
    LoginDialog loginDlg;

    if(loginDlg.exec() == QDialog::Accepted)
    {
        w.show();
        return  a.exec();
    }else
    {
        return 0;
    }

   // w.show();
    return  a.exec();
}
